﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace TinyBug.Models
{
	public class Project
	{
		[Key, StringLength(5, MinimumLength = 5), Display(Name = "Código")]
		public string Code { get; set; }

		[Required, StringLength(50), Display(Name = "Nombre")]
		public string Name { get; set; }

		[Required, Display(Name = "Propietario")]
		public string OwnerId { get; set; }

		public virtual User Owner { get; set; }
		public virtual ICollection<Team> Teams { get; set; }
	}
}